<!doctype html>
<html>
{include file="head.html"}

<body>
<div class="fullscreen">
  <div class="scroll_content">
    <div class="topfixed">
      <div class="t_left"><a href="/index.php?m=guest&a=my"><i class="back"></i></a></div>
      <div class="t_main">我的反馈</div>
     
    </div>
    
 <div class="paddingheight"></div>

<div class="comblock">
    <input type="hidden" name="id" value="{$data.id}">
    <div class="textarea-row">
    	<textarea style="height:200px" placeholder="请输入内容" id="content"></textarea>
    
    <div><button type="button" id="guest-submit" class="cart_change_btn">提交</button></div> 

</div>

</div>
<script>
$(function(){
	$("#content").val(window.localStorage.getItem("guestcontent"));
	$(document).on("change","#content",function(){
		window.localStorage.setItem("guestcontent",$(this).val());
	});
	$(document).on("click","#guest-submit",function(){
		if($("#content").val()==''){
			skyToast('请填写反馈内容');
			return false;
		}
		$.post("/index.php?m=guest&a=save&ajax=1",{content:$("#content").val(),id:$("#id").val()},function(data){
			if(data.error){
				skyToast(data.message);
			}else{
				skyToast('感谢您的反馈','success');
				$("#content").val('');
				window.localStorage.setItem("guestcontent","");
			}
		},"json");
	});
});
</script>

{include file="botnav.html"}
{include file="footer.html"}
</div>
</body>
</html>
